package com.study.dto;

import lombok.Value;

@Value
public class NamesOnly {

    private final String firstname, lastname;

    NamesOnly(String firstname,String lastname) {
        this.firstname = firstname;
        this.lastname = lastname;
    }

    public String getFirstname() {
        return firstname;
    }

    public String getLastname() {
        return lastname;
    }

}
